from threading import Thread
from time import sleep, ctime

def func(name, sec):
    print('---开始---', name, '时间', ctime())
    for i in range(sec):
        sleep(1)
        print(i)
    print('***结束***', name, '时间', ctime())

def test(n):
    t1 = Thread(target=func, args=('第一个线程', n))
    t1.start()
    return str(n)+' yes'

if __name__ == '__main__':
    test(5)
    test(10)
    print('haole------------------------------------------')
    quit()

